import {request} from "./index"

/** 签到
 * 
 * @param {string} token 
 */

const sign = (token) => {
  return request.post(`v1/app/members/sign`, {}, {
    'Authorization': token,
    'content-type': 'application/x-www-form-urlencoded;charset=UTF-8'
  })
}

/** 查询签到历史
 * 
 * @param {string} token 
 */

const querySign = (time,token) => {
  return request.get(`v1/app/members/sign`, {
    time
  }, {
    'Authorization': token
  })
}

export {
  sign,
  querySign
}